import type { BaseProps } from "@/components/AuForm/type";

export const storeAcList: BaseProps[] = [
  {
    type: "input",
    key: "name",
    maxlength: 20,
    showWordLimit: true,
    inType: "text",
    label: "device_manage.form.store_name",
    placeholder: "device_manage.form.store_name_placeholder",
    required: true
  },
  {
    type: "select",
    key: "province",
    label: "device_manage.form.province",
    placeholder: "device_manage.form.province_placeholder",
    valueKey: "value",
    labelKey: "label",
    required: true,
    filterable: true,
    options: []
  },
  {
    type: "select",
    key: "city",
    label: "device_manage.form.city",
    placeholder: "device_manage.form.city_placeholder",
    valueKey: "value",
    labelKey: "label",
    required: true,
    filterable: true,
    options: []
  },
  {
    type: "input",
    key: "detail_address",
    label: "device_manage.form.detail_address",
    placeholder: "device_manage.form.detail_address_placeholder"
  },
  {
    type: "input",
    key: "operator",
    label: "store_manage.form.store_manager",
    placeholder: "store_manage.form.store_manager_placeholder"
  },
  {
    type: "input",
    key: "phone",
    label: "device_manage.form.phone",
    placeholder: "device_manage.form.phone_placeholder"
  },
  {
    type: "el-cascader",
    key: "group_id",
    label: "device_manage.form.store_group",
    placeholder: "device_manage.form.select_store_group",
    checkStrictly: true,
    renderAfterExpand: false,
    required: true,
    props: {
      value: "id",
      label: "name"
    },
    data: []
  }
];
